package com.netmi.myjectpack.paging.bean

import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import androidx.paging.PagingData
import androidx.paging.cachedIn
import com.netmi.myjectpack.paging.Repository
import kotlinx.coroutines.flow.Flow

/**
 * @author tgw
 * @date 2021/4/29
 * @describe
 */
class Page3ViewModel : ViewModel() {

    fun getPagingData(): Flow<PagingData<RepoBean>> {
        return Repository.getPagingData().cachedIn(viewModelScope)
    }

}
